package com.springboot.demo.mapper;


import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.springboot.demo.entity.IncomeRecord;
import org.apache.ibatis.annotations.Select;

import java.util.List;

public interface IncomeRecordMapper extends BaseMapper<IncomeRecord> {

    //按时间顺序查询收入详情
    @Select("Select * From incomerecord ORDER BY date desc")
    List<IncomeRecord> getIncomeByorder();


}
